//
//  UserViewController.m
//  UI_豆瓣app
//
//  Created by 151129-49宋强 on 15/12/25.
//  Copyright © 2015年 www.lanou3g.com蓝鸥. All rights reserved.
//

#import "UserViewController.h"
#import "ZhuCeViewController.h"

@interface UserViewController ()
@property (weak, nonatomic) IBOutlet UILabel *userLabel;
@property (weak, nonatomic) IBOutlet UILabel *passWordLabel;
@property (weak, nonatomic) IBOutlet UITextField *userText;
@property (weak, nonatomic) IBOutlet UITextField *passWordText;




@end

@implementation UserViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    self.view.backgroundColor = [UIColor whiteColor];
    
    self.navigationItem.title = @"用户登录";
    [self.navigationController.navigationBar setBackgroundImage:nil forBarMetrics:UIBarMetricsDefault];
    
    
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"返回" style:UIBarButtonItemStylePlain target:self action:@selector(left)];
    
    self.view = [[[NSBundle mainBundle] loadNibNamed:@"UserViewController" owner:self options:nil] lastObject];
    
    
    
}
- (void)left
{
    [self.navigationController.navigationBar setBackgroundImage:[UIImage imageNamed:@"bg_nav"] forBarMetrics:UIBarMetricsDefault];
    [self.navigationController popViewControllerAnimated:YES];
}



- (IBAction)zhuceBtn:(id)sender {
    ZhuCeViewController *zcVC = [[ZhuCeViewController alloc] init];
    zcVC.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
    [self.navigationController pushViewController:zcVC animated:YES];
    
}
- (IBAction)sengluBtn:(id)sender {
    
    NSLog(@"登录成功");
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
